<h1>Requirements</h1>
Add your project buisiness requirements, and derive them into your spec and design documents<br/>
This is in beta... Can change at any time...<br/>
<br/>
<%= link_to_remote('Add a new requirement', {:url=>{:action=>'add_form'}, :update=>'new', :loading=>"$('loading').show()", :complete=>"$('loading').hide()"}, {:class=>'button'}) %>
<%= link_to('Manage documents', {:controller=>'req_docs', :action=>'index'}, {:class=>'button'}) %>
<%= link_to('Traceability report', {:action=>'traceability'}, {:class=>'button'}) %>
<%= link_to('Import', {:action=>'prepare_import'}, {:class=>'button'}) %>
<%= link_to('Export', {:action=>'prepare_export'}, {:class=>'button'}) %>
<%= link_to('Wipe all', {:action=>'wipe_all'}, {:class=>'button', :confirm=>"Are you sure ?"}) %>
<br/>
<br/>
<ul id="message"></ul>
<div id="new"></div>
<br/>
<div id="doc_list" style="height:15px">
<%= render(:partial=>'doc_link', :collection=>@docs) %>
<img id="loading" src="/images/loading.gif" style="display:none;">
</div>
<br/>

Sort by
<%= select_tag(:sort, options_for_select([[],["Priority","prio"],["Status","status"],["Reference","ref"],["Category","cat"]]), :selected=>session[:req_sort].to_s, :onchange=>"new Ajax.Updater('req_list', '/requirements/sort_reqs?sort='+this.value, {asynchronous:true, evalScripts:true})") %><br/>

<%= form_tag '/requirements/bulk_edit'  %>
<ol id="req_list">
<%= render(:partial=>'req', :collection=>@reqs) %>
</ol>
<%= select_tag(:action_name, options_for_select([["Move","move"],["Change priority","prio"]])) %>
<%= submit_tag("OK") %>
</form>

